#ifndef REGISTER_H
#define REGISTER_H
#define DOCTOR 0
#define PATIENT 1
#include <QWidget>
#include<QTcpSocket>
#include <QDialog>

QT_BEGIN_NAMESPACE
namespace Ui { class Register; }
QT_END_NAMESPACE

class Register : public QDialog
{
    Q_OBJECT


public:
    Register(QDialog *parent = nullptr);
    ~Register();

public slots:
    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

//     void showLoginWidget();


private:
    Ui::Register *ui;
    QTcpSocket *socket;


 signals:
void finish();

};
#endif // REGISTER_H
//#ifndef REGISTER_H
//#define REGISTER_H

//#include <QWidget>
//#include <QPushButton>

//class Register : public QWidget {
//    Q_OBJECT
//public:
//    explicit Register(QWidget *parent = nullptr);

//signals:
//    void finish();  // 注册完成信号
//};

//#endif // REGISTER_H
